package com.gusha.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.*;
import org.hibernate.annotations.DynamicInsert;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @Created：2018-10-26 15:18:16
 * @Author LightSound的代码生成器
 * @Description:ConfigAgent实体类
 */
@Entity
@Table(name="config_agent")
@NamedQuery(name="ConfigAgent.findAll", query="SELECT s FROM ConfigAgent s")
@DynamicInsert
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ConfigAgent implements Serializable {

    private static final long serialVersionUID = 1L;
    
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)    
    private BigInteger id;
    
    /**
            职称
     */
    @Column(name="title")
    private String title;
    
    /**
            人数下限
     */
    @Column(name="man_num_downline")
    private BigDecimal manNumDownline;
    
    /**
            营业部下限
     */
    @Column(name="business_num_downline")
    private BigDecimal businessNumDownline;
    
    /**
            营业部人均业绩
     */
    @Column(name="business_num_avg")
    private BigDecimal businessNumAvg;
    
    /**
           个人业绩（万）
	*/
	@Column(name="single_achievement")
	private BigDecimal singleAchievement;
    
    /**
            业绩（万）
     */
    @Column(name="achievement")
    private BigDecimal achievement;
    
    /**
            管理津贴
     */
    @Column(name="allowance")
    private BigDecimal allowance;
    
    /**
            创建时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="create_time")
    private Date createTime;
    
    /**
            更新时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="update_time")
    private Date updateTime;
    
    /**
            创建人
     */
    @Column(name="creator")
    private String creator;
    
    /**
            更新人
     */
    @Column(name="updator")
    private String updator;
    
	/**
	    0未删 1已删
	*/
	@Column(name="is_delete")
	private Integer isDelete;

	public BigInteger getId() {
		return id;
	}

	public void setId(BigInteger id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public BigDecimal getManNumDownline() {
		return manNumDownline;
	}

	public void setManNumDownline(BigDecimal manNumDownline) {
		this.manNumDownline = manNumDownline;
	}

	public BigDecimal getBusinessNumDownline() {
		return businessNumDownline;
	}

	public void setBusinessNumDownline(BigDecimal businessNumDownline) {
		this.businessNumDownline = businessNumDownline;
	}

	public BigDecimal getBusinessNumAvg() {
		return businessNumAvg;
	}

	public void setBusinessNumAvg(BigDecimal businessNumAvg) {
		this.businessNumAvg = businessNumAvg;
	}

	public BigDecimal getSingleAchievement() {
		return singleAchievement;
	}

	public void setSingleAchievement(BigDecimal singleAchievement) {
		this.singleAchievement = singleAchievement;
	}

	public BigDecimal getAchievement() {
		return achievement;
	}

	public void setAchievement(BigDecimal achievement) {
		this.achievement = achievement;
	}

	public BigDecimal getAllowance() {
		return allowance;
	}

	public void setAllowance(BigDecimal allowance) {
		this.allowance = allowance;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getUpdator() {
		return updator;
	}

	public void setUpdator(String updator) {
		this.updator = updator;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
